<template>
  <div class="basic-layout">
    <div class="nav-side"></div>
    <div class="content-right">
      <div class="nav-top">
        <div class="bread">面包屑</div>
        <div class="user-info">用户信息</div>
      </div>
      <div class="wrapper">
        <div class="main-page">
          <router-view></router-view>
        </div>
      </div>
    </div>
  </div>
</template>

<script></script>

<style lang="scss">
.basic-layout {
  // 侧边栏
  .nav-side {
    position: fixed;
    width: 200px;
    height: 100vh;
    background-color: #001529;
  }

  // 右侧
  .content-right {
    margin-left: 200px;
    .nav-top {
      height: 50px;
      line-height: 50px;
      padding: 0 20px;
      border: 1px solid #ddd;
      display: flex;
      justify-content: space-between;
    }

    .wrapper {
      background-color: #eef0f3;
      height: calc(100vh - 50px);
      padding: 20px;
      .main-page {
        height: 100%;
        background-color: #fff;
      }
    }
  }
}
</style>
